<template>
  <div class="order-express">
    <!-- 订单信息 -->
    <div class="info-wrap">
      <div class="title-wrap">
        <div class="order-info-title">订单信息</div>
        <div class="receiver-info-title">收件人信息</div>
      </div>
      <!-- // TODO: 物流信息未对接 -->
      <div class="order-content">
        <div class="order-info-content">
          <div class="texts">
            <div class="item order-number">订单号：8932832893298</div>
            <div class="item order-status">
              <img
                class="icon"
                src="~/assets/images/yellow-success-mark.png"
                alt=""
              />
              订单状态：商家已发货，等待用户收货
            </div>
            <div class="item order-payment">支付方式：线上支付</div>
          </div>
          <div class="btn">确认收货</div>
        </div>

        <div class="receiver-info-content">
          <div class="texts">
            <div class="item receiver-name">收货人：张三</div>
            <div class="item receiver-mobile">电话：137343443556</div>
            <div class="item receiver-company">公司：成都微微尔科技</div>
            <div class="item receiver-address">
              地址：广东省 河源市 龙川县 成都市高新区天府二街绿地之窗1007房
            </div>
            <div class="item receiver-remarks">备注信息：备注信息</div>
          </div>
        </div>
      </div>
    </div>

    <!-- 物流信息 -->
    <div class="express-info">
      <div class="title">物流信息</div>

      <div class="express-title">
        <div>物理公司：顺丰快递</div>
        <div>货运单号：</div>
        <div>备注：易碎物品，小心托运！</div>
      </div>

      <div class="express-step">
        <m-step :steps="expressSteps" :active="1" />
      </div>
    </div>

    <!-- 时间信息 -->
    <div class="date-info">
      <m-step-vertical :steps="dateSteps" />
    </div>
  </div>
</template>

<script>
import MStep from "@/components/common/m-step/MStep"
import MStepVertical from "@/components/common/m-step/MStepVertical"

export default {
  name: "OrderExpress",
  components: { MStepVertical, MStep },
  data() {
    return {
      orderId: "",
      order: {},
      expressSteps: [
        { title: "等待取货" },
        { title: "物品发车" },
        { title: "物品到达" },
        { title: "正在派送" },
        { title: "等待签收" }
      ],
      dateSteps: [
        { title: "2020-09-12 11:33:12 物流信息" },
        { title: "2020-09-12 11:33:12 物流信息" },
        { title: "2020-09-12 11:33:12 物流信息" },
        { title: "2020-09-12 11:33:12 物流信息" },
        { title: "2020-09-12 11:33:12 卖家发货" }
      ]
    }
  },
  created() {
    this.orderId = this.$route.query.id
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
@import "~@/assets/style/common.scss";

.order-express {
  .info-wrap {
    border: solid 1px #eaeaea;
    margin-bottom: 40px;

    .title-wrap {
      height: 56px;
      background-color: #f3f4f7;
      color: #666;
      font-weight: bold;
      font-size: 16px;
      line-height: 56px;
      padding: 0 15px;
      display: flex;

      .order-info-title,
      .receiver-info-title {
        width: 50%;
      }

      .receiver-info-title {
        padding-left: 15px;
      }
    }

    .order-content {
      display: flex;

      .order-info-content,
      .receiver-info-content {
        padding: 30px;
        width: 50%;
        border-right: solid 1px #eaeaea;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;

        &:last-of-type {
          border-right: none;
        }

        .texts {
          width: 100%;
          margin-bottom: 40px;

          .item {
            margin-bottom: 10px;
            display: flex;
            align-items: flex-end;

            .icon {
              margin-right: 5px;
            }
          }

          /deep/ .el-upload--picture-card {
            width: 73px;
            height: 73px;
            background-color: #fff;
            border: none;
            position: relative;
          }

          .close {
            position: absolute;
            top: 0;
            right: 0;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            text-align: center;
            line-height: 18px;
            color: #d1d1d1;
            border: 1px solid #d1d1d1;
            background: #fff;
          }
        }

        .btn {
          width: 112px;
          height: 40px;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: $theme-color-1;
          color: #fff;
          font-size: 16px;
          border-radius: 10px;
          cursor: pointer;
        }
      }
    }
  }

  .express-info {
    .title {
      color: #666;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .express-title {
      height: 55px;
      background-color: #f5f4f9;
      padding: 15px;
      display: flex;
      align-items: center;
      margin-bottom: 15px;

      div {
        margin-right: 30px;
      }
    }
  }

  .express-step {
    padding: 15px;
    margin-bottom: 15px;
  }

  .date-info {
    height: 480px;
    overflow-y: auto;
    border: solid 1px #eaeaea;
    padding: 30px 15px;
    margin-bottom: 40px;
  }
}
</style>
